home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!beachyhd.demon.co.uk
- From: Adam@beachyhd.demon.co.uk
- Newsgroups: comp.sys.amiga.programmer
- Subject: Scrolling only selected bitplanes
- Date: 18 Mar 96 20:13:09 GMT
- Organization: Beachy Head - UK
- Message-ID: <314e1835@beachyhd.demon.co.uk>
- X-NNTP-Posting-Host: beachyhd.demon.co.uk
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- X-GateSoftware: AmiGate 1.6 (13.11.95)
- MMDF-Warning: Parse error in original version of preceding line at relay-2.mail.demon.net
- X-Mail2News-Path: disperse.demon.co.uk!post.demon.co.uk!beachyhd.demon.co.uk
-
- Hi all,
-
- I'm wondering how to go about something..
-
- I have an intuition screen open, on to which I'm directly rendering (using its
- own rastport, not a window's rastport). This window can be any number of
- bitplanes (2 to 8), but usually is 8.
-
- I am currently drawing (using WritePixel()) and scrolling (using
- ScrollRaster()). However, I want to be able to draw and scroll completely
- *independently* of the final bitplane. So I draw and scroll planes 1 through 7,
- but plane 8 stays completely undisturbed.
-
- This will allow me a basic parallax effect. As planes 1 - 7 scroll by, plane 8
- stays behind, motionless.
-
- However, I don't quite know how I can achieve this effect. Both WritePixel()
- and ScrollRaster() both operate on *all* bitplanes in the Rastport. Is there
- any way I can get these functions to leave the final plane completely alone?
-
- If it's not possible, it's only really the scrolling that really must not
- interact with the background. Is it possible for me to scroll 7 of the 8 planes
- using a function other than ScrollRast? Then I could use the blitter to only
- scroll the seven planes, whilst the 8th is left alone.
-
- Any help would be greatly appreciated!
-
- .\dam. [Team AMIGA] //\ ad32@brighton.ac.uk \\/
-
-